package me.innolux.daxin_nesting.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class WcsReturnVo {

    //消息码 "SUCCESS"
    private Integer code;

    //消息内容 "成功"
    private String message;


    private Object data;


    public static WcsReturnVo OK(Object taskCode){
        WcsReturnVo agvTaskSubmitVo = new WcsReturnVo();
        agvTaskSubmitVo.setCode(200);
        agvTaskSubmitVo.setMessage("成功");
        agvTaskSubmitVo.setData(taskCode);
        return agvTaskSubmitVo;
    }

    public static WcsReturnVo ng(String taskCode){
        WcsReturnVo agvTaskSubmitVo = new WcsReturnVo();
        agvTaskSubmitVo.setCode(500);
        agvTaskSubmitVo.setMessage( taskCode);
//        agvTaskSubmitVo.setData();
        return agvTaskSubmitVo;
    }
}
